#!/usr/env/bin python
# -*- coding: utf-8 -*-

# @Time    : 2020-11-19 10:00 上午
# @Author  : yangdy
# @File    : 2020-11-19.3
# @Software: PyCharmCE
from tools.my_methods import *


def work():
    import heapq
    import _heapq

    data = [1, 2, 3]
    print(data)
    _heapq.heapify(data)
    print(data)
    print(_heapq.heappop(data))

    data2 = [1, 2, 3]
    heapq.heapify(data2)
    print(data2)
    print(heapq.heappop(data2))
    heapq.heappush(data2, 1)
    print(data2)

work()

